package com.zwk.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zwk.common.utils.PageUtils;
import com.zwk.gulimall.product.entity.AttrEntity;
import com.zwk.gulimall.product.vo.AttrResVo;
import com.zwk.gulimall.product.vo.AttrVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author zhuwenkang
 * @email zhuwenkang@gmail.com
 * @date 2022-12-30 22:47:10
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    boolean save(AttrVo attrVo);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId);

    PageUtils querySaleAttrPage(Map<String, Object> params, Long catelogId);

    AttrResVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attrVo);

    /**
     * 在指定的所有属性集合里面，挑出检索属性
     *
     * @param attrIds
     * @return
     */
    List<Long> selectSearchAttrs(List<Long> attrIds);
}

